Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Property

Count

val Count: int

Declaring type: Collection<T>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: Collection.rvn

Defined by Collection<T>.Count · Required implementation (no default).

Interface implementation: Required implementation (no default).

Gets the number of elements.

Property value

Int32

Remarks

For String this counts graphemes and is explicitly implemented; direct callers use Length.